home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
H-I
/
HyperHackers.cpt
/
Hyper-Hackers Queue 1.0
/
card_13420.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
749b
|
27 lines
-- card: 13420 from stack: in.0
-- bmap block id: 0
-- flags: 0000
-- background id: 3797
-- name:
-- part contents for background part 1
----- text -----
From: Jakob Nielsen Tech Univ of Denmark <DATJN@NEUVM1.bitnet>
Date: Tue, 05 Jan 88 02:37:54 DNT
What is a good way to test if the contents of a field is an integer ?
I want to do input validation to protect my users from getting
strange error messages later in a HyperTalk program.
One alternative would be to trap HyperCard's error messages
(how does one do that) - perhaps after having multiplied the
field with one just to see whether it is in fact a number.
-- part contents for background part 45
----- text -----
Input validation   (test if input is numerical)